package edu.szu.huhanpeng.doodlingFight.interfaces 
{
	
	/**
	 * ...
	 * @author Huhanpeng
	 */
	public interface ISquareData 
	{
		function get index():int;	//方格的编号，从0开始左到右，上到下排列
		
		function get row():int
		
		function get column():int
		
		function get chessData():IChessData
		
		function set chessData(data:IChessData):void
		
		function placeChess(data:IChessData):void;
		
		//上方的格子的引用
		function get upSquare():ISquareData;
		function set upSquare(square:ISquareData):void;
		
		//下方的格子的引用
		function get downSquare():ISquareData;
		function set downSquare(square:ISquareData):void;
		
		//左方的格子的引用
		function get leftSquare():ISquareData;
		function set leftSquare(square:ISquareData):void;
		
		//右方的格子的引用
		function get rightSquare():ISquareData;
		function set rightSquare(square:ISquareData):void;
		
		//左上方
		function get LUSquare():ISquareData;
		function set LUSquare(square:ISquareData):void;
		
		//右上方
		function get RUSquare():ISquareData;
		function set RUSquare(square:ISquareData):void;
		
		//左下方
		function get LDSquare():ISquareData;
		function set LDSquare(square:ISquareData):void;
		
		//右下方
		function get RDSquare():ISquareData;
		function set RDSquare(square:ISquareData):void;
	}
	
}